<?php
/* @var $this VoteController */
/* @var $model Vote */

$this->breadcrumbs=array(
	'活动管理'=>array('admin'),
	'修改活动',
);
//设置页面标题
$this->pageTitle=Yii::app()->name.' - 修改活动';
$this->contentTitle='修改活动';
?>

<!--表单内容-->
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'vote-form',
	'enableAjaxValidation'=>false,
        'enableClientValidation'=>true,
        'clientOptions'=>array(
            'validateOnSubmit'=>true
        ),
    'htmlOptions'=>array('enctype'=>'multipart/form-data','class'=>'ajax_form'),
)); ?>
<table cellspacing="1" class="myform">
	<tr>
		<td align="right"><?php echo $form->labelEx($model,'title'); ?></td>
		<td>
			<?php echo $form->textField($model,'title',array('size'=>20,'maxlength'=>20,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'title'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'start_date'); ?></td>
		<td>
			<?php echo $form->textField($model,'start_date',array('class'=>'fl input')); ?>
			<?php echo $form->error($model,'start_date'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'end_date'); ?></td>
		<td>
			<?php echo $form->textField($model,'end_date',array('class'=>'fl input')); ?>
			<?php echo $form->error($model,'end_date'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'spacing'); ?></td>
		<td>
			<?php echo $form->textField($model,'spacing',array('class'=>'fl input')); ?>
			<?php echo $form->error($model,'spacing'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'number'); ?></td>
		<td>
			<?php echo $form->textField($model,'number',array('class'=>'fl input')); ?>
			<?php echo $form->error($model,'number'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'head_image'); ?></td>
		<td>
			<?php echo $form->textField($model,'head_image',array('size'=>60,'maxlength'=>255,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'head_image'); ?>
		</td>
	</tr>
	
		<tr>
		<td align="right"></td>
		<td>
			<?php echo CHtml::activeFileField($model,'head_image1'); ?>
			<?php echo $form->error($model,'head_image1'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'s_remark'); ?></td>
		<td>
			<?php echo $form->textArea($model,'s_remark',array('rows'=>6, 'cols'=>50,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'s_remark'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'p_remark'); ?></td>
		<td>
			<?php echo $form->textArea($model,'p_remark',array('rows'=>6, 'cols'=>50,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'p_remark'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'f_remark'); ?></td>
		<td>
			<?php echo $form->textArea($model,'f_remark',array('rows'=>6, 'cols'=>50,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'f_remark'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'a_remark'); ?></td>
		<td>
			<?php echo $form->textArea($model,'a_remark',array('rows'=>6, 'cols'=>50,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'a_remark'); ?>
		</td>
	</tr>

	<tr>
        <td align="right"></td>
        <td>
            <input class="but" type="submit" name="yt1" value="提 交" />        </td>
    </tr>
</table>
<?php $this->endWidget(); ?>
<!--表单内容-->